'use strict';


/**
 * @param {Egg.Application} app - egg application
 */


module.exports = app => {

  const { router, controller, service, middlewares } = app;
  router.post('/user/login', controller.user.userLogin);
  router.get('/user/auth/login', controller.user.userAuthLogin);
  router.get('/get/user/info', controller.user.getUserInfo);
  router.get('/get/question/type', controller.user.getQuestionType);
  router.get('/get/question', controller.user.getQuestion);
  router.get('/get/rank', controller.user.getRank);
 router.get('/add/praise', controller.user.addPraise);
 router.get('/get/history', controller.user.getHistory);
 router.post('/add/feedback', controller.user.addFeedBack);
 router.get('/get/question/data', controller.user.getQuestionData);
  router.get('/add/rank', controller.user.addRank);
router.get('/get/question/by/type', controller.back.getQuestionByType);
router.post('/add/question', controller.back.addQuestion);
 router.get('/delete/question', controller.back.deleteQuestion);
};

